/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-07 17:44:28
 * @LastEditors: wning
 * @LastEditTime: 2022-12-09 13:47:50
 */
import { Http } from '@/common/api'
// 列表
export const listUrl = '/upms/tenant/page'

export const tenantPageApi = async (data) => Http.post('/umps/tenant/page', data)
// 新增
export const tenantAdd = async (parmas) => Http.post('/upms/tenant/add', parmas)
export const tenantUpdate = async (parmas) => Http.put('/upms/tenant/update', parmas)
export const tenantBathDelete = async (id) => Http.delete(`/upms/tenant/batch/delete/${id}`)
export const tenantFindById = async (id) => Http.get(`/upms/tenant/findById/${id}`)
// 批量启用
export const tenantBatchEnable = async (parmas) => Http.put('/upms/tenant/batch/enable', parmas)
// 批量停用
export const tenantBatchDisable = async (parmas) => Http.put('/upms/tenant/batch/disable', parmas)
// 分配菜单
export const menuTenantAdd = async (parmas) => Http.post('/upms/menu/tenant/batch/add', parmas)
// 获取菜单
export const menuTenant = async () => Http.get('/upms/menu/findRouters')
